package org.example.ch02.p01;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextLine()){
            int n= scanner.nextInt();
            int begin= scanner.nextInt();
            int end= scanner.nextInt();
            StringBuilder sb= new StringBuilder();
            for(int i=0;i<n;i++){
                 sb.append(i);
            }
            String result= sb.substring(begin,end);
            System.out.println(result);
        }
        scanner.close();
    }
}
